#!/user/bin/python
# -*- coding: UTF-8 -*-
# 题目：打印出如下图案（菱形）:
#
#    *
#   ***
#  *****
# *******
#  *****
#   ***
#    *
from sys import stdout
n = int(raw_input("integer:\n"))
#n = 6
for i in range(n):
    for j in range(n - i - 1):
        stdout.write(" ")
    for j in range(2 * i + 1):
        stdout.write("*")
    print
for i in range(n - 1):
    for j in range(i + 1):
        stdout.write(" ")
    for j in range(2 * (n - i - 1) - 1):
        stdout.write("*")
    print
